package com.gph.saviorframework.dao.security;

import com.gph.saviorframework.base.dao.BaseDao;
import com.gph.saviorframework.common.model.Field;
import org.apache.ibatis.annotations.Param;
import org.aspectj.lang.annotation.Aspect;

import java.util.List;
import java.util.Map;

@Aspect
public interface FieldDao extends BaseDao<Field,Long> {

    /**
     * 查询结果集
     * @param sort
     * @param dir
     * @param whereClause
     * @return
     */
    List<Map<String,Object>> find(@Param(value = "sort") String sort, @Param(value = "dir") String dir,
                                  @Param(value = "where_clause") String whereClause);

    /**
     * 返回结果集数量
     * @param whereClause
     * @return
     */
    long count(@Param(value = "where_clause") String whereClause);
}
